package com.ruoyi.degree.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.degree.mapper.BizSchoolsProfessionsClassesMapper;
import com.ruoyi.degree.domain.BizSchoolsProfessionsClasses;
import com.ruoyi.degree.service.IBizSchoolsProfessionsClassesService;

/**
 * 课程展示Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-25
 */
@Service
public class BizSchoolsProfessionsClassesServiceImpl implements IBizSchoolsProfessionsClassesService 
{
    @Autowired
    private BizSchoolsProfessionsClassesMapper bizSchoolsProfessionsClassesMapper;

    /**
     * 查询课程展示
     * 
     * @param id 课程展示主键
     * @return 课程展示
     */
    @Override
    public BizSchoolsProfessionsClasses selectBizSchoolsProfessionsClassesById(Long id)
    {
        return bizSchoolsProfessionsClassesMapper.selectBizSchoolsProfessionsClassesById(id);
    }

    /**
     * 查询课程展示列表
     * 
     * @param bizSchoolsProfessionsClasses 课程展示
     * @return 课程展示
     */
    @Override
    public List<BizSchoolsProfessionsClasses> selectBizSchoolsProfessionsClassesList(BizSchoolsProfessionsClasses bizSchoolsProfessionsClasses)
    {
        return bizSchoolsProfessionsClassesMapper.selectBizSchoolsProfessionsClassesList(bizSchoolsProfessionsClasses);
    }

    /**
     * 新增课程展示
     * 
     * @param bizSchoolsProfessionsClasses 课程展示
     * @return 结果
     */
    @Override
    public int insertBizSchoolsProfessionsClasses(BizSchoolsProfessionsClasses bizSchoolsProfessionsClasses)
    {
        return bizSchoolsProfessionsClassesMapper.insertBizSchoolsProfessionsClasses(bizSchoolsProfessionsClasses);
    }

    /**
     * 修改课程展示
     * 
     * @param bizSchoolsProfessionsClasses 课程展示
     * @return 结果
     */
    @Override
    public int updateBizSchoolsProfessionsClasses(BizSchoolsProfessionsClasses bizSchoolsProfessionsClasses)
    {
        return bizSchoolsProfessionsClassesMapper.updateBizSchoolsProfessionsClasses(bizSchoolsProfessionsClasses);
    }

    /**
     * 批量删除课程展示
     * 
     * @param ids 需要删除的课程展示主键
     * @return 结果
     */
    @Override
    public int deleteBizSchoolsProfessionsClassesByIds(Long[] ids)
    {
        return bizSchoolsProfessionsClassesMapper.deleteBizSchoolsProfessionsClassesByIds(ids);
    }

    /**
     * 删除课程展示信息
     * 
     * @param id 课程展示主键
     * @return 结果
     */
    @Override
    public int deleteBizSchoolsProfessionsClassesById(Long id)
    {
        return bizSchoolsProfessionsClassesMapper.deleteBizSchoolsProfessionsClassesById(id);
    }

    @Override
    public int inpubdeleteBizSchoolsProfessionsClassesByProfessionId(Long id) {
        return bizSchoolsProfessionsClassesMapper.inpubdeleteBizSchoolsProfessionsClassesByProfessionId(id);
    }

    @Override
    public List<BizSchoolsProfessionsClasses> selectBizSchoolsProfessionsClassesByProfessionId(Long id) {
        return bizSchoolsProfessionsClassesMapper.selectBizSchoolsProfessionsClassesByProfessionId(id);
    }
}
